var _list = [23,4,56,123,6,76,8,345,67,21,98,1235,16432,85,25,135,79789,434,154,38,3584,1846,7897832];
//console.log(_.max(_list));
console.log(Math.random());
function selectSort(arr)
{
	var minIndex,temp;
	for(var i=0; i<arr.length; i++)
	{
		minIndex = i;
		for(j = i+1; j<arr.length; j++)
		{
			if(arr[j] < arr[minIndex])
			{
				minIndex = j;
			}
		}
		temp = arr[i];
		arr[i] = arr[minIndex];
		arr[minIndex] = temp;
		
	}

	return arr;
}

console.time('start');
console.log(selectSort(_list));
console.timeEnd('start');